﻿using System;
using System.Threading.Tasks;
using NLog;
using Quartz;

namespace hygge_imaotai.Jobs {
    public class ReservationJob : IJob {
        private static readonly Logger Logger = LogManager.GetCurrentClassLogger();



        public Task Execute(IJobExecutionContext context) {
            Logger.Info($"批量预约开始");
            return Task.Factory.StartNew(IMTService.ReservationBatch);

        }
    }

    public class RefreshJob : IJob {
        private static readonly Logger Logger = LogManager.GetCurrentClassLogger();


        public Task Execute(IJobExecutionContext context) {
            Logger.Info($"刷新数据开始 刷新版本号，预约item，门店shop列表");
            return Task.Factory.StartNew(IMTService.RefreshAll);
        }
    }
}
